package com.gruuf.done.client;

import java.util.Date;

public class SimpleTask {

    private String name;
    private String type;
    private Date endDate;
    private String description;

    public SimpleTask(String name, String type, Date endDate, String description) {
        this.name = name;
        this.type = type;
        this.endDate = endDate;
        this.description = description;
    }

    public String getName() {
        return name;
    }

    public String getType() {
        return type;
    }

    public Date getEndDate() {
        return endDate;
    }

    public String getDescription() {
        return description;
    }

    public void finish() {
        endDate = new Date();
    }
}
